package com.ecoolex.hotel.saas.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.hotel.saas.entity.PresaleCouponOrderAfterSales;
import com.ecoolex.hotel.saas.entity.PresaleCouponOrderAfterSalesExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface PresaleCouponOrderAfterSalesMapper {
    long countByExample(PresaleCouponOrderAfterSalesExample example);

    int deleteByExample(PresaleCouponOrderAfterSalesExample example);

    int deleteByPrimaryKey(Integer afterSalesId);

    int insert(PresaleCouponOrderAfterSales record);

    int insertSelective(@Param("record") PresaleCouponOrderAfterSales record, @Param("selective") PresaleCouponOrderAfterSales.Column ... selective);

    PresaleCouponOrderAfterSales selectOneByExample(PresaleCouponOrderAfterSalesExample example);

    List<PresaleCouponOrderAfterSales> selectByExample(PresaleCouponOrderAfterSalesExample example);

    PresaleCouponOrderAfterSales selectByPrimaryKey(Integer afterSalesId);

    PresaleCouponOrderAfterSales selectByPrimaryKeyWithLogicalDelete(@Param("afterSalesId") Integer afterSalesId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") PresaleCouponOrderAfterSales record, @Param("example") PresaleCouponOrderAfterSalesExample example, @Param("selective") PresaleCouponOrderAfterSales.Column ... selective);

    int updateByExample(@Param("record") PresaleCouponOrderAfterSales record, @Param("example") PresaleCouponOrderAfterSalesExample example);

    int updateByPrimaryKeySelective(@Param("record") PresaleCouponOrderAfterSales record, @Param("selective") PresaleCouponOrderAfterSales.Column ... selective);

    int updateByPrimaryKey(PresaleCouponOrderAfterSales record);

    int batchInsert(@Param("list") List<PresaleCouponOrderAfterSales> list);

    int batchInsertSelective(@Param("list") List<PresaleCouponOrderAfterSales> list, @Param("selective") PresaleCouponOrderAfterSales.Column ... selective);

    int logicalDeleteByExample(@Param("example") PresaleCouponOrderAfterSalesExample example);

    int logicalDeleteByPrimaryKey(Integer afterSalesId);
}